// pages/my/likedlist/likedlist.js
Page({
  data: {
    id: "",
    list: []
  },
  onLoad: function (options) {
    this.setData({
      id: options.id
    });
    this.getData();
  },
  getData() {
    getApp().globalData.http.thumbupList({
      postId: this.data.id
    }).then(res => {
      this.setData({
        list: res.data
      });
    });
  }
})